//content3新闻标题var list = [  ]
window.onload = function () {
    function fun() {
        var content3 = document.querySelector('#content3');
        var xinwen = list.map(function (item) {
            return `<div class="list">
                    <h4>${item.title}</h4>
                    <div class="bottom">
                        <div class="tu">
                            <img src="http://${item.tu}" alt="">
                        </div>
                        <p class="dingweip">
                            <a href="">${item.list1}
                            </a>
                        </p>
                        <ul class="lastsecond">
                            <li>
                                <a href="">${item.xinwen1}
                            </a>
                            </li>
                            <li>
                               <a href="">${item.xinwen2}
                            </a>
                            </li>
                            <li>
                               <a href="">${item.xinwen3}
                            </a>
                            </li>
                            <li>
                               <a href="">${item.xinwen4}
                            </a>
                            <li>
                                <a href="">${item.xinwen5}
                            </a>
                            </li>
                        </ul>
                        <p><a href="">更多></a></p>
                    </div>
                </div>`
        }).join("");
        content3.innerHTML = xinwen;
    }
    fun();
    // content2第一部分的新闻的图与文字
    function fun1() {
        let content2bottom1 = document.querySelector("#content2bottom1");
        res = list1.map(function (item) {
            return `<div class="box">
                        <div class="tu">
                            <img src="http://${item.tu}" alt="">
                        </div>
                        <p><a href="">${item.text}</a></p>
                    </div>`
        }).join("");
        content2bottom1.innerHTML = res;
    }
    fun1();
}